<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>The source code</title>
  <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  <style type="text/css">
    .highlight { display: block; background-color: #ddd; }
  </style>
  <script type="text/javascript">
    function highlight() {
      document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
    }
  </script>
</head>
<body onload="prettyPrint(); highlight();">
  <pre class="prettyprint lang-js">/*
  Generated by kissy-xtemplate.*/
KISSY.add('date/picker/year-panel/year-panel-xtpl', function () {
    return function (scopes, S, undefined) {
        var buffer = &quot;&quot;,
            config = this.config,
            engine = this,
            utils = config.utils;
        var runBlockCommandUtil = utils[&quot;runBlockCommand&quot;],
            getExpressionUtil = utils[&quot;getExpression&quot;],
            getPropertyOrRunCommandUtil = utils[&quot;getPropertyOrRunCommand&quot;];
        buffer += '&lt;div class=&quot;';
        var config1 = {};
        var params2 = [];
        params2.push('header');
        config1.params = params2;
        var id0 = getPropertyOrRunCommandUtil(engine, scopes, config1, &quot;getBaseCssClasses&quot;, 0, 1, true, undefined);
        buffer += id0;
        buffer += '&quot;&gt;\r\n    &lt;a id=&quot;ks-date-picker-year-panel-previous-decade-btn-';
        var id3 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 2, undefined, false);
        buffer += getExpressionUtil(id3, true);
        buffer += '&quot;\r\n       class=&quot;';
        var config5 = {};
        var params6 = [];
        params6.push('prev-decade-btn');
        config5.params = params6;
        var id4 = getPropertyOrRunCommandUtil(engine, scopes, config5, &quot;getBaseCssClasses&quot;, 0, 3, true, undefined);
        buffer += id4;
        buffer += '&quot;\r\n       href=&quot;#&quot;\r\n       role=&quot;button&quot;\r\n       title=&quot;';
        var id7 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;previousDecadeLabel&quot;, 0, 6, undefined, false);
        buffer += getExpressionUtil(id7, true);
        buffer += '&quot;\r\n       hidefocus=&quot;on&quot;&gt;\r\n    &lt;/a&gt;\r\n\r\n    &lt;a class=&quot;';
        var config9 = {};
        var params10 = [];
        params10.push('decade-select');
        config9.params = params10;
        var id8 = getPropertyOrRunCommandUtil(engine, scopes, config9, &quot;getBaseCssClasses&quot;, 0, 10, true, undefined);
        buffer += id8;
        buffer += '&quot;\r\n       role=&quot;button&quot;\r\n       href=&quot;#&quot;\r\n       hidefocus=&quot;on&quot;\r\n       title=&quot;';
        var id11 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;decadeSelectLabel&quot;, 0, 14, undefined, false);
        buffer += getExpressionUtil(id11, true);
        buffer += '&quot;\r\n       id=&quot;ks-date-picker-year-panel-decade-select-';
        var id12 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 15, undefined, false);
        buffer += getExpressionUtil(id12, true);
        buffer += '&quot;&gt;\r\n            &lt;span id=&quot;ks-date-picker-year-panel-decade-select-content-';
        var id13 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 16, undefined, false);
        buffer += getExpressionUtil(id13, true);
        buffer += '&quot;&gt;\r\n                ';
        var id14 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;startYear&quot;, 0, 17, undefined, false);
        buffer += getExpressionUtil(id14, true);
        buffer += '-';
        var id15 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;endYear&quot;, 0, 17, undefined, false);
        buffer += getExpressionUtil(id15, true);
        buffer += '\r\n            &lt;/span&gt;\r\n        &lt;span class=&quot;';
        var config17 = {};
        var params18 = [];
        params18.push('decade-select-arrow');
        config17.params = params18;
        var id16 = getPropertyOrRunCommandUtil(engine, scopes, config17, &quot;getBaseCssClasses&quot;, 0, 19, true, undefined);
        buffer += id16;
        buffer += '&quot;&gt;x&lt;/span&gt;\r\n    &lt;/a&gt;\r\n\r\n    &lt;a id=&quot;ks-date-picker-year-panel-next-decade-btn-';
        var id19 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 22, undefined, false);
        buffer += getExpressionUtil(id19, true);
        buffer += '&quot;\r\n       class=&quot;';
        var config21 = {};
        var params22 = [];
        params22.push('next-decade-btn');
        config21.params = params22;
        var id20 = getPropertyOrRunCommandUtil(engine, scopes, config21, &quot;getBaseCssClasses&quot;, 0, 23, true, undefined);
        buffer += id20;
        buffer += '&quot;\r\n       href=&quot;#&quot;\r\n       role=&quot;button&quot;\r\n       title=&quot;';
        var id23 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;nextDecadeLabel&quot;, 0, 26, undefined, false);
        buffer += getExpressionUtil(id23, true);
        buffer += '&quot;\r\n       hidefocus=&quot;on&quot;&gt;\r\n    &lt;/a&gt;\r\n&lt;/div&gt;\r\n&lt;div class=&quot;';
        var config25 = {};
        var params26 = [];
        params26.push('body');
        config25.params = params26;
        var id24 = getPropertyOrRunCommandUtil(engine, scopes, config25, &quot;getBaseCssClasses&quot;, 0, 30, true, undefined);
        buffer += id24;
        buffer += '&quot;&gt;\r\n    &lt;table class=&quot;';
        var config28 = {};
        var params29 = [];
        params29.push('table');
        config28.params = params29;
        var id27 = getPropertyOrRunCommandUtil(engine, scopes, config28, &quot;getBaseCssClasses&quot;, 0, 31, true, undefined);
        buffer += id27;
        buffer += '&quot; cellspacing=&quot;0&quot; role=&quot;grid&quot;&gt;\r\n        &lt;tbody id=&quot;ks-date-picker-year-panel-tbody-';
        var id30 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 32, undefined, false);
        buffer += getExpressionUtil(id30, true);
        buffer += '&quot;&gt;\r\n        ';
        var config32 = {};
        var params33 = [];
        params33.push('date/picker/year-panel/years-xtpl');
        config32.params = params33;
        var id31 = getPropertyOrRunCommandUtil(engine, scopes, config32, &quot;include&quot;, 0, 33, false, undefined);
        buffer += id31;
        buffer += '\r\n        &lt;/tbody&gt;\r\n    &lt;/table&gt;\r\n&lt;/div&gt;';
        return buffer;
    }
});</pre>
</body>
</html>
